package com.ddwl.common.feign.api;

import com.ddwl.schema.vo.base.RestVo;
import com.ddwl.schema.vo.goods.ItemVo;
import feign.Headers;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

/**
 * 类SearchApi.java的实现描述：TODO
 *
 * @author zach
 * @Date :2020-10-26 16:36.
 */
@FeignClient(name = "ddwl-search" ,path = "/search")
public interface SearchApi {


    @ApiOperation(value = "根据id删除商品")
    @DeleteMapping("/esProduct/delete/{id}")
    RestVo<Object> delete(@PathVariable String id);


    @ApiOperation(value = "创建商品信息")
    @PostMapping( "/esProduct/create")
    @Headers({"pk:api"})
    RestVo<ItemVo> create(@RequestBody ItemVo itemVo);

}
